<?php
/**
 * 商品相册模型层
 * 
 * @copyright 	Copyright (c) 2011 thinkapk.com All rights reserved.
 * @package 	ThinkAPK_Model
 * @link 		http://www.thinkapk.com/
 * @author 		richie <richbossman@163.com>
 * @version 	$Id: GoodsGalleryModel.class.php 7474 2011-05-27 10:07:35Z richie $
 * 
 */
class GoodsGalleryModel extends CommonModel {
	
	/* 取商品图片
	 * @param int $goods_id	商品ID
	*/
	public function getGoodsGallery($goods_id){
		if(!$goods_id) return array();
		$imgs=$this->field('img_id,img_desc,img_url,thumb_url,img_original,thumb_url_b')->where("goods_id={$goods_id}")->select();
		if(!$imgs) return array();
		else return $imgs;		
	}
}
?>